const mysql = require('../connection')
  function pool (sql,params){
     return  new Promise((resolve,reject)=>{
                mysql.query(sql,params,(err,sccese)=>{
                    if(err)
                    reject(err)
                    else 
                    resolve(sccese)
                })
})
 }

 module.exports = pool